package com.sskj.lib.util;


public class CoinUtil {
    public static String showName(String code) {
        return code.replace("_", "/").toUpperCase();
    }

    public static String keepRMB(String rmb) {
        return NumberUtil.keep2(rmb);
    }

    public static String keepRMB(double rmb) {
        return keepRMB(rmb + "");
    }

    //代币
    public static String keepCoin(String coin) {
        return NumberUtil.keep(coin, 6);
    }

    public static String keepCoin(double coin) {
        return keepCoin(coin + "");
    }

    public static String keepUSDT(String coin) {
        return NumberUtil.keep(coin, 6);
    }

    public static String keepUSDT(double coin) {
        return keepUSDT(coin + "");
    }
}
